class Priority < ActiveRecord::Base
#  include Comparable
  has_many :issues

  # returns common priority names for autocompletion
  def self.names
    find( :all, :limit => 10, :order => 'taggings' ).map( &:name )
  end

  def inspect
    "Priority:#{name}"
  end

  def to_s
    "#{name}"
  end

#  def <=>(value)
#    if value.is_a? Priority
#      @tagging <=> value.tagging
#    else
#      nil
#    end
#  end
end
